﻿@model ScrumPilot.Models.KanbanViewModels
@{
    ViewBag.Title = "Kanban Dashboard Definition";
}
@section HeadContent{
    <link href="@Url.Content("~/Content/KanbanIndex.css")" rel="stylesheet" type="text/css" />
}
@section AddJavaScript
{
    <script type="text/javascript" src='@Url.Content("~/Scripts/KanbanIndex.js")'></script>
    <script type="text/javascript">
        var myPage = new KanbanIndex();
    </script>
}
@section JSDocumentReady
{
myPage.Ready();
}
@section PageOptionUrl
{
    '@Url.Action("UpdateIteration", "Kanban")'
}
<h1 class="span8">@ViewBag.Title</h1>
<div class="row-fluid">
    <div class="span6" style="padding: 12px">
        <h3>Selected Iteration</h3>
        <ul id="selected" class="connectedSortable">
            @foreach (var prj in Model.SelectedProjects)
            {
                <li class="alert alert-info limargin" id="@prj.Iterations.First().SID" data-projectid="@prj.ID">@prj.Name @prj.Iterations.First().Name</li>
            }
        </ul>
    </div>
    <div class="span6" style="padding: 12px">
        <h3>Unselected Iteration</h3>
        <ul id="unselected" class="connectedSortable">
            @foreach (var prj in Model.UnselectedProjects)
            {
                foreach (var iteration in prj.Iterations)
                {
                <li class="alert alert-error limargin" id="@iteration.SID" data-projectid="@prj.ID">@prj.Name @iteration.Name</li>
                }
            }
        </ul>
    </div>
</div>
